package com.bw.day0713.demo.src.main.java.com.bw.server;

import com.bw.bean.Student;
import com.bw.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

//他会把这个对象加载内存中(控制反转 交给spring管理)
@Service
public class UserServerImp implements UserServer{


  @Autowired
  UserMapper userMapper;

    @Override
    public List<Map> findAll() {
        return userMapper.findAll();
    }

    @Override
    public Student findById(Integer id) {
        return userMapper.findById(id);
    }

    @Override
    public List<Map> findTrafficUv(Integer dt) {
        return userMapper.findTrafficUv(dt);
    }



    @Override
    public List<Map> findUb() {
        return userMapper.findUb();
    }

}
